package com.wyy.sbtest;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Date 2024/5/14
 * @Author wyy
 **/
@Component
public class MyService {

    @Value("${user.name}")
    private String username;

    public void m1() {
        System.out.println("MyService.m1");
    }
 }
